package bit;

public class Demo1 {
	public static void main(String[] args) {
		System.out.println(5&3);
		System.out.println(Integer.toBinaryString(5&3));
		System.out.println(5|3);
		System.out.println(Integer.toBinaryString(5|3));
		System.out.println(5^3);
		System.out.println(Integer.toBinaryString(5^3));
		
		int a= 98, b =79;
		a = a ^ b;
		b = a ^ b;
		a = a ^ b;
		System.out.println("a=" + a);
		System.out.println("b=" + b);
	}
}
